home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-04-19 | 2.3 KB | 101 lines | [TEXT/MPS ] |
- //# Copyright: © 1993-94 by Apple Computer, Inc., all rights reserved.
- #ifndef _LINKB_
- #define _LINKB_
-
- #ifndef _PSTOBJ_
- #include "PstObj.idl"
- #endif
-
- //==============================================================================
- // Theory of Operation
- //==============================================================================
-
- /*
- This class is used to represent the destination side of OpenDoc links.
- ODDrafts create and own these links. The source ODPart will ask the draft
- to create an ODLinkSource and an ODLink pair, and return the ODLink
- object to the the destination part. The destination part uses the ODLink
- object to extract the contents of the link.
- */
-
- //==============================================================================
- // Classes defined in this interface
- //==============================================================================
-
- interface ODBaseLink;
-
- //==============================================================================
- // Classes used by this interface
- //==============================================================================
-
- interface ODStorageUnit;
- interface ODPart;
- interface ODPartList;
- interface ODLinkSource;
- interface ODDraft;
-
- //==============================================================================
- // ODLink
- //==============================================================================
-
- interface ODBaseLink : ODPersistentObject
- {
-
-
- ODBoolean Lock(in ODULong wait,
- in ODLinkKey key);
-
- void Unlock(in ODLinkKey key);
-
- ODStorageUnit GetContentStorageUnit(in ODLinkKey key);
-
- void RegisterDependent(in ODPart clientPart,
- in ODChangeID id);
-
- void UnregisterDependent(in ODPart clientPart);
-
- ODChangeID GetChangeID();
-
- ODTime GetChangeTime();
-
- ODError GetStatus();
-
- void ShowSourceContent();
-
- void UpdateDependents(in ODChangeID id);
-
- ODStorageUnit CloneTo(in ODDraftKey draftKey,
- in ODDraft destDraft);
-
-
- #ifdef __SOMIDL__
- implementation
- {
- override:
- somInit,
- somUninit;
-
- releaseorder:
- Lock,
- Unlock,
- GetContentStorageUnit,
- RegisterDependent,
- UnregisterDependent,
- GetChangeID,
- GetChangeTime,
- GetStatus,
- ShowSourceContent,
- UpdateDependents,
- CloneTo,
- reserved1,
- reserved2;
-
- majorversion = 1; minorversion = 0;
-
- };
-
- #endif //# __SOMIDL__
- };
-
- #endif //# _LINKB_
-